package com.nyc.boot;

import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author niuyicong
 * @date 2025/8/26  23:03:14
 * @description
 */
@RestController
public class TestController {
    @Autowired
    private RedissonClient redissonClient;


    @GetMapping("/query")
    public String test(){
        long count = redissonClient.getKeys().count();
        return "key的个数" + count;
    }
}
